<?php
/*
* @package Joostina
* @copyright Авторские права (C) 2008 Joostina team. Все права защищены.
* @license Лицензия http://www.gnu.org/licenses/gpl-2.0.htm GNU/GPL, или help/license.php
* Joostina! - свободное программное обеспечение распространяемое по условиям лицензии GNU/GPL
* Для получения информации о используемых расширениях и замечаний об авторском праве смотрите файл help/copyright.php.
*/
// ограничение доступа
defined('_VALID_MOS') or die();
$_MAMBOTS->registerFunction('onPrepareContent','btdclass');
function btdclass($published,&$row, &$params,$page=0) {
global $mosConfig_absolute_path,$_MAMBOTS,$database;
$query="SELECT id FROM #__mambots WHERE element='btd' AND folder='content'";
$database->setQuery($query);
$id=$database->loadResult();
$mambot=new mosMambot($database);
$mambot->load($id);
$param=& new mosParameters($mambot->params);
// параметры
// папка изображений
$btdpath=$param->get('btdpath','mambots/content/btd');
// картинка
$bgimgalert=$param->get('bgimgalert','alert.png');
$bgimginfo=$param->get('bgimginfo','info.png');
$bgimgwarning=$param->get('bgimgwarning','warning.png');
$bgimgsticky=$param->get('bgimgsticky','sun.gif');
$bgimgquote1=$param->get('bgimgquote1','quote1.png');
$bgimgquote2=$param->get('bgimgquote2','quote2.gif');
$bgimgfeed=$param->get('bgimgfeed','feed.png');
$bgimgdownload=$param->get('bgimgdownload','download.gif');
$bgimgcode=$param->get('bgimgcode','_no-image.gif');
$bgimgpdf=$param->get('bgimgpdf','pdf.png');
$bgimgvideo=$param->get('bgimgvideo','video.png');
$bgimgppt=$param->get('bgimgppt','ppt.png');
$bgimgtext=$param->get('bgimgtext','text.png');
$bgimgword=$param->get('bgimgword','word.gif');
$bgimgrtf=$param->get('bgimgrtf','rtf.png');
$bgimgxml=$param->get('bgimgxml','xml.gif');
$bgimgzip=$param->get('bgimgzip','zip.png');
$bgimgexcel=$param->get('bgimgexcel','excel.gif');
$bgimgmusic=$param->get('bgimgmusic','music.png');
$bgimglet=$param->get('bgimglet','letitbit.png');
$bgimgdeposit=$param->get('bgimgdepozit','depositfiles.png');
$bgimgrapide=$param->get('bgimgrapide','rapidshare.png');
$bgimgli_mark=$param->get('bgimgli_mark','list_arrow.png');
// фон
$bgcoloralert=$param->get('bgcoloralert','#FFF6BF');
$bgcolorinfo=$param->get('bgcolorinfo','#F8FAFC');
$bgcolorwarning=$param->get('bgcolorwarning','#FBEEF1');
$bgcolorsticky=$param->get('bgcolorsticky','#E6FFE1');;
$bgcolorfeed=$param->get('bgcolorfeed','#E0E0E8');
$bgcolordownload=$param->get('bgcolordownload','#F0F0F0');
$bgcolorquote=$param->get('bgcolorquote','#FFFFFF');
$bgcolorcode=$param->get('bgcolorcode','#F0F0F0');
$bgcolorpdf=$param->get('bgcolorpdf','#fff6bf');
$bgcolorvideo=$param->get('bgcolorvideo','#fff6bf');
$bgcolorppt=$param->get('bgcolorppt','#fff6bf');
$bgcolortext=$param->get('bgcolortext','#FFFFFF');
$bgcolorword=$param->get('bgcolorword','#F0F0F0');
$bgcolorrtf=$param->get('bgcolorrtf','#fff6bf');
$bgcolorxml=$param->get('bgcolorxml','#fff6bf');
$bgcolorzip=$param->get('bgcolorzip','#fff6bf');
$bgcolorexcel=$param->get('bgcolorexcel','#fff6bf');
$bgcolormusic=$param->get('bgcolormusic','#fff6bf');
$bgcolorlet=$param->get('bgcolorlet','#fff6bf');
$bgcolordeposit=$param->get('bgcolordeposit','#fff6bf');
$bgcolorrapide=$param->get('bgcolorrapide','#fff6bf');
// цвет
$color_alert=$param->get('color_alert','#996666');
$color_info=$param->get('color_info','#5E6273');
$color_warning=$param->get('color_warning','#8E6A64');
$color_sticky=$param->get('color_sticky','#48793F');
$color_feed=$param->get('color_feed','#333333');
$color_download=$param->get('color_download','#666666');
$color_quote=$param->get('color_quote','#999999');
$color_code=$param->get('color_code','#666666');
$color_pdf=$param->get('color_pdf','#996666');
$color_video=$param->get('color_video','#996666');
$color_ppt=$param->get('color_ppt','#996666');
$color_text=$param->get('color_text','#996666');
$color_zip=$param->get('color_zip','#996666');
$color_xml=$param->get('color_xml','#996666');
$color_word=$param->get('color_word','#996666');
$color_rtf=$param->get('color_rtf','#996666');
$color_excel=$param->get('color_excel','#996666');
$color_music=$param->get('color_music','#996666');
$color_let=$param->get('color_let','#996666');
$color_deposit=$param->get('color_deposit','#996666');
$color_rapide=$param->get('color_rapide','#996666');
$color_li_disc=$param->get('color_li_disc','#996666');
$color_li_circle=$param->get('color_li_circle','#996666');
$color_li_square=$param->get('color_li_square','#996666');
$color_li_l_roman=$param->get('color_li_l_roman','#996666');
$color_li_u_roman=$param->get('color_li_u_roman','#996666');
$color_li_l_alpha=$param->get('color_li_l_alpha','#996666');
$color_li_u_alpha=$param->get('color_li_u_alpha','#996666');
$color_li_decimal=$param->get('color_li_decimal','#996666');
$color_li_disc_span=$param->get('color_li_disc_span','#996666');
$color_li_circle_span=$param->get('color_li_circle_span','#996666');
$color_li_square_span=$param->get('color_li_square_span','#996666');
$color_li_l_roman_span=$param->get('color_li_l_roman_span','#996666');
$color_li_u_roman_span=$param->get('color_li_u_roman_span','#996666');
$color_li_l_alpha_span=$param->get('color_li_l_alpha_span','#996666');
$color_li_u_alpha_span=$param->get('color_li_u_alpha_span','#996666');
$color_li_decimal_span=$param->get('color_li_decimal_span','#996666');
// отступы
$pt_alert=$param->get('pt_alert','5px');
$pr_alert=$param->get('pr_alert','20px');
$pb_alert=$param->get('pb_alert','5px');
$pl_alert=$param->get('pl_alert','45px');
$pt_info=$param->get('pt_info','5px');
$pr_info=$param->get('pr_info','20px');
$pb_info=$param->get('pb_info','5px');
$pl_info=$param->get('pl_info','45px');
$pt_warning=$param->get('pt_warning','5px');
$pr_warning=$param->get('pr_warning','20px');
$pb_warning=$param->get('pb_warning','5px');
$pl_warning=$param->get('pl_warning','45px');
$pt_sticky=$param->get('pt_sticky','5px');
$pr_sticky=$param->get('pr_sticky','20px');
$pb_sticky=$param->get('pb_sticky','5px');
$pl_sticky=$param->get('pl_sticky','45px');
$pt_sticky=$param->get('pt_sticky','5px');
$pr_sticky=$param->get('pr_sticky','20px');
$pb_sticky=$param->get('pb_sticky','5px');
$pl_sticky=$param->get('pl_sticky','45px');
$pt_feed=$param->get('pt_feed','5px');
$pr_feed=$param->get('pr_feed','20px');
$pb_feed=$param->get('pb_feed','5px');
$pl_feed=$param->get('pl_feed','45px');
$pt_download=$param->get('pt_download','5px');
$pr_download=$param->get('pr_download','20px');
$pb_download=$param->get('pb_download','5px');
$pl_download=$param->get('pl_download','45px');
$pt_pdf=$param->get('pt_pdf','5px');
$pr_pdf=$param->get('pr_pdf','20px');
$pb_pdf=$param->get('pb_pdf','5px');
$pl_pdf=$param->get('pl_pdf','45px');
$pt_video=$param->get('pt_video','5px');
$pr_video=$param->get('pr_video','20px');
$pb_video=$param->get('pb_video','5px');
$pl_video=$param->get('pl_video','45px');
$pt_ppt=$param->get('pt_ppt','5px');
$pr_ppt=$param->get('pr_ppt','20px');
$pb_ppt=$param->get('pb_ppt','5px');
$pl_ppt=$param->get('pl_ppt','45px');
$pt_word=$param->get('pt_word','5px');
$pr_word=$param->get('pr_word','20px');
$pb_word=$param->get('pb_word','5px');
$pl_word=$param->get('pl_word','45px');
$pt_text=$param->get('pt_text','5px');
$pr_text=$param->get('pr_text','20px');
$pb_text=$param->get('pb_text','5px');
$pl_text=$param->get('pl_text','45px');
$pt_xml=$param->get('pt_xml','5px');
$pr_xml=$param->get('pr_xml','20px');
$pb_xml=$param->get('pb_xml','5px');
$pl_xml=$param->get('pl_xml','45px');
$pt_zip=$param->get('pt_zip','5px');
$pr_zip=$param->get('pr_zip','20px');
$pb_zip=$param->get('pb_zip','5px');
$pl_zip=$param->get('pl_zip','45px');
$pt_rtf=$param->get('pt_rtf','5px');
$pr_rtf=$param->get('pr_rtf','20px');
$pb_rtf=$param->get('pb_rtf','5px');
$pl_rtf=$param->get('pl_rtf','45px');
$pt_excel=$param->get('pt_excel','5px');
$pr_excel=$param->get('pr_excel','20px');
$pb_excel=$param->get('pb_excel','5px');
$pl_excel=$param->get('pl_excel','45px');
$pt_music=$param->get('pt_music','5px');
$pr_music=$param->get('pr_music','20px');
$pb_music=$param->get('pb_music','5px');
$pl_music=$param->get('pl_music','45px');
$pt_let=$param->get('pt_let','5px');
$pr_let=$param->get('pr_let','20px');
$pb_let=$param->get('pb_let','5px');
$pl_let=$param->get('pl_let','45px');
$pt_deposit=$param->get('pt_deposit','5px');
$pr_deposit=$param->get('pr_deposit','20px');
$pb_deposit=$param->get('pb_deposit','5px');
$pl_deposit=$param->get('pl_deposit','45px');
$pt_rapide=$param->get('pt_rapide','5px');
$pr_rapide=$param->get('pr_rapide','20px');
$pb_rapide=$param->get('pb_rapide','5px');
$pl_rapide=$param->get('pl_rapide','45px');
$pt_code=$param->get('pt_code','5px');
$pr_code=$param->get('pr_code','20px');
$pb_code=$param->get('pb_code','5px');
$pl_code=$param->get('pl_code','10px');
$pt_quote=$param->get('pt_quote','10px');
$pr_quote=$param->get('pr_quote','20px');
$pb_quote=$param->get('pb_quote','10px');
$pl_quote=$param->get('pl_quote','60px');
// граница
$bordertopsize_alert=$param->get('bordertopsize_alert','2px');
$bordertoptype_alert=$param->get('bordertoptype_alert','solid');
$bordertopcolor_alert=$param->get('bordertopcolor_alert','#ffd324');
$borderbotsize_alert=$param->get('borderbotsize_alert','2px');
$borderbottype_alert=$param->get('borderbottype_alert','solid');
$borderbotcolor_alert=$param->get('borderbotcolor_alert','#ffd324');
$bordertopsize_info=$param->get('bordertopsize_info','2px');
$bordertoptype_info=$param->get('bordertoptype_info','solid');
$bordertopcolor_info=$param->get('bordertopcolor_info','#B5D4FE');
$borderbotsize_info=$param->get('borderbotsize_info','2px');
$borderbottype_info=$param->get('borderbottype_info','solid');
$borderbotcolor_info=$param->get('borderbotcolor_info','#B5D4FE');
$bordertopsize_warning=$param->get('bordertopsize_warning','2px');
$bordertoptype_warning=$param->get('bordertoptype_warning','solid');
$bordertopcolor_warning=$param->get('bordertopcolor_warning','#FEABB9');
$borderbotsize_warning=$param->get('borderbotsize_warning','2px');
$borderbottype_warning=$param->get('borderbottype_warning','solid');
$borderbotcolor_warning=$param->get('borderbotcolor_warning','#FEABB9');
$bordertopsize_sticky=$param->get('bordertopsize_sticky','2px');
$bordertoptype_sticky=$param->get('bordertoptype_sticky','solid');
$bordertopcolor_sticky=$param->get('bordertopcolor_sticky','#FEABB9');
$borderbotsize_sticky=$param->get('borderbotsize_sticky','2px');
$borderbottype_sticky=$param->get('borderbottype_sticky','solid');
$borderbotcolor_sticky=$param->get('borderbotcolor_sticky','#FEABB9');
$bordertopsize_feed=$param->get('bordertopsize_feed','2px');
$bordertoptype_feed=$param->get('bordertoptype_feed','solid');
$bordertopcolor_feed=$param->get('bordertopcolor_feed','#85BBDB');
$borderbotsize_feed=$param->get('borderbotsize_feed','2px');
$borderbottype_feed=$param->get('borderbottype_feed','solid');
$borderbotcolor_feed=$param->get('borderbotcolor_feed','#85BBDB');
$bordertopsize_download=$param->get('bordertopsize_download','2px');
$bordertoptype_download=$param->get('bordertoptype_download','solid');
$bordertopcolor_download=$param->get('bordertopcolor_download','#c0c0c0');
$borderbotsize_download=$param->get('borderbotsize_download','2px');
$borderbottype_download=$param->get('borderbottype_download','solid');
$borderbotcolor_download=$param->get('borderbotcolor_download','#c0c0c0');
$bordertopsize_pdf=$param->get('bordertopsize_pdf','2px');
$bordertoptype_pdf=$param->get('bordertoptype_pdf','solid');
$bordertopcolor_pdf=$param->get('bordertopcolor_pdf','#ffd324');
$borderbotsize_pdf=$param->get('borderbotsize_pdf','2px');
$borderbottype_pdf=$param->get('borderbottype_pdf','solid');
$borderbotcolor_pdf=$param->get('borderbotcolor_pdf','#ffd324');
$bordertopsize_video=$param->get('bordertopsize_video','2px');
$bordertoptype_video=$param->get('bordertoptype_video','solid');
$bordertopcolor_video=$param->get('bordertopcolor_video','#ffd324');
$borderbotsize_video=$param->get('borderbotsize_video','2px');
$borderbottype_video=$param->get('borderbottype_video','solid');
$borderbotcolor_video=$param->get('borderbotcolor_video','#ffd324');
$bordertopsize_ppt=$param->get('bordertopsize_ppt','2px');
$bordertoptype_ppt=$param->get('bordertoptype_ppt','solid');
$bordertopcolor_ppt=$param->get('bordertopcolor_ppt','#ffd324');
$borderbotsize_ppt=$param->get('borderbotsize_ppt','2px');
$borderbottype_ppt=$param->get('borderbottype_ppt','solid');
$borderbotcolor_ppt=$param->get('borderbotcolor_ppt','#ffd324');
$bordertopsize_rtf=$param->get('bordertopsize_rtf','2px');
$bordertoptype_rtf=$param->get('bordertoptype_rtf','solid');
$bordertopcolor_rtf=$param->get('bordertopcolor_rtf','#ffd324');
$borderbotsize_rtf=$param->get('borderbotsize_rtf','2px');
$borderbottype_rtf=$param->get('borderbottype_rtf','solid');
$borderbotcolor_rtf=$param->get('borderbotcolor_rtf','#ffd324');
$bordertopsize_excel=$param->get('bordertopsize_excel','2px');
$bordertoptype_excel=$param->get('bordertoptype_excel','solid');
$bordertopcolor_excel=$param->get('bordertopcolor_excel','#ffd324');
$borderbotsize_excel=$param->get('borderbotsize_excel','2px');
$borderbottype_excel=$param->get('borderbottype_excel','solid');
$borderbotcolor_excel=$param->get('borderbotcolor_excel','#ffd324');
$bordertopsize_music=$param->get('bordertopsize_music','2px');
$bordertoptype_music=$param->get('bordertoptype_music','solid');
$bordertopcolor_music=$param->get('bordertopcolor_music','#ffd324');
$borderbotsize_music=$param->get('borderbotsize_music','2px');
$borderbottype_music=$param->get('borderbottype_music','solid');
$borderbotcolor_music=$param->get('borderbotcolor_music','#ffd324');
$bordertopsize_let=$param->get('bordertopsize_let','2px');
$bordertoptype_let=$param->get('bordertoptype_let','solid');
$bordertopcolor_let=$param->get('bordertopcolor_let','#ffd324');
$borderbotsize_let=$param->get('borderbotsize_let','2px');
$borderbottype_let=$param->get('borderbottype_let','solid');
$borderbotcolor_let=$param->get('borderbotcolor_let','#ffd324');
$bordertopsize_deposit=$param->get('bordertopsize_deposit','2px');
$bordertoptype_deposit=$param->get('bordertoptype_deposit','solid');
$bordertopcolor_deposit=$param->get('bordertopcolor_deposit','#ffd324');
$borderbotsize_deposit=$param->get('borderbotsize_deposit','2px');
$borderbottype_deposit=$param->get('borderbottype_deposit','solid');
$borderbotcolor_deposit=$param->get('borderbotcolor_deposit','#ffd324');
$bordertopsize_rapide=$param->get('bordertopsize_rapide','2px');
$bordertoptype_rapide=$param->get('bordertoptype_rapide','solid');
$bordertopcolor_rapide=$param->get('bordertopcolor_rapide','#ffd324');
$borderbotsize_rapide=$param->get('borderbotsize_rapide','2px');
$borderbottype_rapide=$param->get('borderbottype_rapide','solid');
$borderbotcolor_rapide=$param->get('borderbotcolor_rapide','#ffd324');
$bordertopsize_zip=$param->get('bordertopsize_zip','2px');
$bordertoptype_zip=$param->get('bordertoptype_zip','solid');
$bordertopcolor_zip=$param->get('bordertopcolor_zip','#ffd324');
$borderbotsize_zip=$param->get('borderbotsize_zip','2px');
$borderbottype_zip=$param->get('borderbottype_zip','solid');
$borderbotcolor_zip=$param->get('borderbotcolor_zip','#ffd324');
$bordertopsize_xml=$param->get('bordertopsize_xml','2px');
$bordertoptype_xml=$param->get('bordertoptype_xml','solid');
$bordertopcolor_xml=$param->get('bordertopcolor_xml','#ffd324');
$borderbotsize_xml=$param->get('borderbotsize_xml','2px');
$borderbottype_xml=$param->get('borderbottype_xml','solid');
$borderbotcolor_xml=$param->get('borderbotcolor_xml','#ffd324');
$bordertopsize_text=$param->get('bordertopsize_text','2px');
$bordertoptype_text=$param->get('bordertoptype_text','solid');
$bordertopcolor_text=$param->get('bordertopcolor_text','#ffd324');
$borderbotsize_text=$param->get('borderbotsize_text','2px');
$borderbottype_text=$param->get('borderbottype_text','solid');
$borderbotcolor_text=$param->get('borderbotcolor_text','#ffd324');
$bordertopsize_word=$param->get('bordertopsize_word','2px');
$bordertoptype_word=$param->get('bordertoptype_word','solid');
$bordertopcolor_word=$param->get('bordertopcolor_word','#ffd324');
$borderbotsize_word=$param->get('borderbotsize_word','2px');
$borderbottype_word=$param->get('borderbottype_word','solid');
$borderbotcolor_word=$param->get('borderbotcolor_word','#ffd324');
$bordertopsize_quote=$param->get('bordertopsize_quote','2px');
$bordertoptype_quote=$param->get('bordertoptype_quote','dotted');
$bordertopcolor_quote=$param->get('bordertopcolor_quote','#cccccc');
$borderbotsize_quote=$param->get('borderbotsize_quote','2px');
$borderbottype_quote=$param->get('borderbottype_quote','dotted');
$borderbotcolor_quote=$param->get('borderbotcolor_quote','#cccccc');
$bordersize_code=$param->get('bordersize_code','5px');
$bordertype_code=$param->get('bordertype_code','solid');
$bordercolor_code=$param->get('bordercolor_code','#C3D7EA');
$dropcap_color=$param->get('dropcap_color','#333333');
$dropcap_fontsize=$param->get('dropcap_fontsize','70px');
$dropcap_fontfamily=$param->get('dropcap_fontfamily','Georgia, Times New Roman, Trebuchet MS');
$quote_fontstyle=$param->get('quote_fontstyle','italic;');
$quote_left_width=$param->get('quote_left_width','200px;');
$quote_right_width=$param->get('quote_right_width','200px;');
// угол 1
$roundtxtbg1=$param->get('roundtxtbg1','#3E3E3E');
$roundtxtcolor1=$param->get('roundtxtcolor1','#FFFFFF');
$round_left_width=$param->get('round_left_width','200px;');
$round_right_width=$param->get('round_right_width','200px;');
// угол 2
$roundtxtbg2=$param->get('roundtxtbg2','#FFFFFF');
$roundtxtcolor2=$param->get('roundtxtcolor2','#333333');
// угол 3
$roundtxtbg3=$param->get('roundtxtbg3','#247FE6');
$roundtxtcolor3=$param->get('roundtxtcolor3','#FFFFFF');
// угол 4
$roundtxtbg4=$param->get('roundtxtbg4','#ED2024');
$roundtxtcolor4=$param->get('roundtxtcolor4','#FFFFFF');
// стили
$regex=array(
"btd_pdf" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgpdf.") center no-repeat;background-color:".$bgcolorpdf.";background-position:15px 50%;text-align:left;padding:".$pt_pdf." ".$pr_pdf." ".$pb_pdf." ".$pl_pdf.";color:".$color_pdf.";border-top:".$bordertopsize_pdf." ".$bordertoptype_pdf." ".$bordertopcolor_pdf.";border-bottom:".$borderbotsize_pdf." ".$borderbottype_pdf." ".$borderbotcolor_pdf.";\">***code***</p>","#{btd_pdf}(.*?){/btd_pdf}#s"),
"btd_video" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgvideo.") center no-repeat;background-color:".$bgcolorvideo.";background-position:15px 50%;text-align:left;padding:".$pt_video." ".$pr_video." ".$pb_video." ".$pl_video.";color:".$color_video.";border-top:".$bordertopsize_video." ".$bordertoptype_video." ".$bordertopcolor_video.";border-bottom:".$borderbotsize_video." ".$borderbottype_video." ".$borderbotcolor_video.";\">***code***</p>","#{btd_video}(.*?){/btd_video}#s"),
"btd_ppt" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgppt.") center no-repeat;background-color:".$bgcolorppt.";background-position:15px 50%;text-align:left;padding:".$pt_ppt." ".$pr_ppt." ".$pb_ppt." ".$pl_ppt.";color:".$color_ppt.";border-top:".$bordertopsize_ppt." ".$bordertoptype_ppt." ".$bordertopcolor_ppt.";border-bottom:".$borderbotsize_ppt." ".$borderbottype_ppt." ".$borderbotcolor_ppt.";\">***code***</p>","#{btd_ppt}(.*?){/btd_ppt}#s"),
"btd_rtf" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgrtf.") center no-repeat;background-color:".$bgcolorrtf.";background-position:15px 50%;text-align:left;padding:".$pt_rtf." ".$pr_rtf." ".$pb_rtf." ".$pl_rtf.";color:".$color_rtf.";border-top:".$bordertopsize_rtf." ".$bordertoptype_rtf." ".$bordertopcolor_rtf.";border-bottom:".$borderbotsize_rtf." ".$borderbottype_rtf." ".$borderbotcolor_rtf.";\">***code***</p>","#{btd_rtf}(.*?){/btd_rtf}#s"),
"btd_word" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgword.") center no-repeat;background-color:".$bgcolorword.";background-position:15px 50%;text-align:left;padding:".$pt_word." ".$pr_word." ".$pb_word." ".$pl_word.";color:".$color_word.";border-top:".$bordertopsize_word." ".$bordertoptype_word." ".$bordertopcolor_word.";border-bottom:".$borderbotsize_word." ".$borderbottype_word." ".$borderbotcolor_word.";\">***code***</p>","#{btd_word}(.*?){/btd_word}#s"),
"btd_text" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgtext.") center no-repeat;background-color:".$bgcolortext.";background-position:15px 50%;text-align:left;padding:".$pt_text." ".$pr_text." ".$pb_text." ".$pl_text.";color:".$color_text.";border-top:".$bordertopsize_text." ".$bordertoptype_text." ".$bordertopcolor_text.";border-bottom:".$borderbotsize_text." ".$borderbottype_text." ".$borderbotcolor_text.";\">***code***</p>","#{btd_text}(.*?){/btd_text}#s"),
"btd_xml" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgxml.") center no-repeat;background-color:".$bgcolorxml.";background-position:15px 50%;text-align:left;padding:".$pt_xml." ".$pr_xml." ".$pb_xml." ".$pl_xml.";color:".$color_xml.";border-top:".$bordertopsize_xml." ".$bordertoptype_xml." ".$bordertopcolor_xml.";border-bottom:".$borderbotsize_xml." ".$borderbottype_xml." ".$borderbotcolor_xml.";\">***code***</p>","#{btd_xml}(.*?){/btd_xml}#s"),
"btd_excel" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgexcel.") center no-repeat;background-color:".$bgcolorexcel.";background-position:15px 50%;text-align:left;padding:".$pt_excel." ".$pr_excel." ".$pb_excel." ".$pl_excel.";color:".$color_excel.";border-top:".$bordertopsize_excel." ".$bordertoptype_excel." ".$bordertopcolor_excel.";border-bottom:".$borderbotsize_excel." ".$borderbottype_excel." ".$borderbotcolor_excel.";\">***code***</p>","#{btd_excel}(.*?){/btd_excel}#s"),
"btd_music" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgmusic.") center no-repeat;background-color:".$bgcolormusic.";background-position:15px 50%;text-align:left;padding:".$pt_music." ".$pr_music." ".$pb_music." ".$pl_music.";color:".$color_music.";border-top:".$bordertopsize_music." ".$bordertoptype_music." ".$bordertopcolor_music.";border-bottom:".$borderbotsize_music." ".$borderbottype_music." ".$borderbotcolor_music.";\">***code***</p>","#{btd_music}(.*?){/btd_music}#s"),
"btd_zip" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgzip.") center no-repeat;background-color:".$bgcolorzip.";background-position:15px 50%;text-align:left;padding:".$pt_zip." ".$pr_zip." ".$pb_zip." ".$pl_zip.";color:".$color_zip.";border-top:".$bordertopsize_zip." ".$bordertoptype_zip." ".$bordertopcolor_zip.";border-bottom:".$borderbotsize_zip." ".$borderbottype_zip." ".$borderbotcolor_zip.";\">***code***</p>","#{btd_zip}(.*?){/btd_zip}#s"),
"btd_let" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimglet.") center no-repeat;background-color:".$bgcolorlet.";background-position:15px 50%;text-align:left;padding:".$pt_let." ".$pr_let." ".$pb_let." ".$pl_let.";color:".$color_let.";border-top:".$bordertopsize_let." ".$bordertoptype_let." ".$bordertopcolor_let.";border-bottom:".$borderbotsize_let." ".$borderbottype_let." ".$borderbotcolor_let.";\">***code***</p>","#{btd_let}(.*?){/btd_let}#s"),
"btd_deposit" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgdeposit.") center no-repeat;background-color:".$bgcolordeposit.";background-position:15px 50%;text-align:left;padding:".$pt_deposit." ".$pr_deposit." ".$pb_deposit." ".$pl_deposit.";color:".$color_deposit.";border-top:".$bordertopsize_deposit." ".$bordertoptype_deposit." ".$bordertopcolor_deposit.";border-bottom:".$borderbotsize_deposit." ".$borderbottype_deposit." ".$borderbotcolor_deposit.";\">***code***</p>","#{btd_deposit}(.*?){/btd_deposit}#s"),
"btd_rapide" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgrapide.") center no-repeat;background-color:".$bgcolorrapide.";background-position:15px 50%;text-align:left;padding:".$pt_rapide." ".$pr_rapide." ".$pb_rapide." ".$pl_rapide.";color:".$color_rapide.";border-top:".$bordertopsize_rapide." ".$bordertoptype_rapide." ".$bordertopcolor_rapide.";border-bottom:".$borderbotsize_rapide." ".$borderbottype_rapide." ".$borderbotcolor_rapide.";\">***code***</p>","#{btd_rapide}(.*?){/btd_rapide}#s"),
"btd_alert" => array("<p style=\"background:url(".$btdpath."/icon/".$bgimgalert.") center no-repeat;background-color:".$bgcoloralert.";background-position:15px 50%;text-align:left;padding:".$pt_alert." ".$pr_alert." ".$pb_alert." ".$pl_alert.";color:".$color_alert.";border-top:".$bordertopsize_alert." ".$bordertoptype_alert." ".$bordertopcolor_alert." ;border-bottom:".$borderbotsize_alert." ".$borderbottype_alert." ".$borderbotcolor_alert.";\">***code***</p>","#{btd_alert}(.*?){/btd_alert}#s"),
"btd_info" => array("<p style=\"background:url(".$btdpath."/icon/".$bgimginfo.") center no-repeat;background-color:".$bgcolorinfo.";background-position:15px 50%;text-align:left;padding:".$pt_info." ".$pr_info." ".$pb_info." ".$pl_info.";color:".$color_info.";border-top:".$bordertopsize_info." ".$bordertoptype_info." ".$bordertopcolor_info.";border-bottom:".$borderbotsize_info." ".$borderbottype_info." ".$borderbotcolor_info.";\">***code***</p>","#{btd_info}(.*?){/btd_info}#s"),
"btd_warning" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgwarning.") center no-repeat;background-color:".$bgcolorwarning.";background-position:15px 50%;text-align:left;padding:".$pt_warning." ".$pr_warning." ".$pb_warning." ".$pl_warning.";color:".$color_warning.";border-top:".$bordertopsize_warning." ".$bordertoptype_warning." ".$bordertopcolor_warning.";border-bottom:".$borderbotsize_warning." ".$borderbottype_warning." ".$borderbotcolor_warning.";\">***code***</p>","#{btd_warning}(.*?){/btd_warning}#s"),
"btd_sticky" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgsticky.") center no-repeat;background-color:".$bgcolorsticky.";background-position:15px 50%;text-align:left;padding:".$pt_sticky." ".$pr_sticky." ".$pb_sticky." ".$pl_sticky."; color:".$color_sticky.";border-top:".$bordertopsize_sticky." ".$bordertoptype_sticky." ".$bordertopcolor_sticky.";border-bottom:".$borderbotsize_sticky." ".$borderbottype_sticky." ".$borderbotcolor_sticky.";\">***code***</p>","#{btd_sticky}(.*?){/btd_sticky}#s"),
"btd_feed" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgfeed.") center no-repeat;background-color:".$bgcolorfeed.";background-position:15px 50%;text-align:left;padding:".$pt_feed." ".$pr_feed." ".$pb_feed." ".$pl_feed."; color:".$color_feed.";border-top:".$bordertopsize_feed." ".$bordertoptype_feed." ".$bordertopcolor_feed."; border-bottom:".$borderbotsize_feed." ".$borderbottype_feed." ".$borderbotcolor_feed.";\">***code***</p>","#{btd_feed}(.*?){/btd_feed}#s"),
"btd_download" => array("
<p style=\"background:url(".$btdpath."/icon/".$bgimgdownload.") center no-repeat;background-color:".$bgcolordownload.";background-position:15px 50%;text-align:left;padding:".$pt_download." ".$pr_download." ".$pb_download." ".$pl_download.";color:".$color_download.";border-top:".$bordertopsize_download." ".$bordertoptype_download." ".$bordertopcolor_download.";border-bottom:".$borderbotsize_download." ".$borderbottype_download." ".$borderbotcolor_download.";\">***code***</p>","#{btd_download}(.*?){/btd_download}#s"),
"btd_quote" => array("
<blockquote style=\"margin:15px 10px;background:".$bgcolorquote."url(".$btdpath."/icon/".$bgimgquote1.") top left no-repeat;padding:".$pt_quote." ".$pr_quote." ".$pb_quote." ".$pl_quote.";border-top:".$bordertopsize_quote." ".$bordertoptype_quote." ".$bordertopcolor_quote.";border-bottom:".$borderbotsize_quote." ".$borderbottype_quote." ".$borderbotcolor_quote.";\"><p style=\"background:url(".$btdpath."/icon/".$bgimgquote2.") bottom right no-repeat;padding:10px 30px 15px 0px;font-size:110%;line-height:120%;color:".$color_quote."; font-style:".$quote_fontstyle.";\">***code***</p></blockquote>","#{btd_quote}(.*?){/btd_quote}#s"),
"btd_quote_left" => array("
<blockquote style=\"float:left;width:".$quote_left_width.";margin:15px 10px;background:".$bgcolorquote."url(".$btdpath."/icon/".$bgimgquote1.") top left no-repeat;padding:".$pt_quote." ".$pr_quote." ".$pb_quote." ".$pl_quote.";border-top:".$bordertopsize_quote." ".$bordertoptype_quote." ".$bordertopcolor_quote."; border-bottom:".$borderbotsize_quote." ".$borderbottype_quote." ".$borderbotcolor_quote.";\"><p style=\"background:url(".$btdpath."/icon/".$bgimgquote2.") bottom right no-repeat;padding:10px 30px 15px 0px;font-size:110%;line-height:120%;color:".$color_quote.";font-style:".$quote_fontstyle.";\">***code***</p></blockquote>","#{btd_quote_left}(.*?){/btd_quote_left}#s"),
"btd_quote_right" => array("
<blockquote style=\"float:right;width:".$quote_right_width.";margin:15px 10px;background:".$bgcolorquote."url(".$btdpath."/icon/".$bgimgquote1.") top left no-repeat;padding:".$pt_quote." ".$pr_quote." ".$pb_quote." ".$pl_quote.";border-top:".$bordertopsize_quote." ".$bordertoptype_quote." ".$bordertopcolor_quote."; border-bottom:".$borderbotsize_quote." ".$borderbottype_quote." ".$borderbotcolor_quote.";\"><p style=\"background:url(".$btdpath."/icon/".$bgimgquote2.") bottom right no-repeat;padding:10px 30px 15px 0px;font-size:110%;line-height:120%;color:".$color_quote.";font-style:".$quote_fontstyle.";\">***code***</p></blockquote>","#{btd_quote_right}(.*?){/btd_quote_right}#s"),
"btd_code" => array("
<p style=\"background:".$bgcolorcode." url(".$btdpath."/icon/".$bgimgcode.") 10px 5px no-repeat;padding:".$pt_code." ".$pr_code." ".$pb_code." ".$pl_code.";font-family:Courier New, Courier, mono, times new roman;line-height:150%;border-left:".$bordersize_code." ".$bordertype_code." ".$bordercolor_code.";color:".$color_code.";\">***code***</p>","#{btd_code}(.*?){/btd_code}#s"),
"btd_dropcap" => array("
<div style=\"float:left;text-transform:uppercase;line-height:80%;padding:0px 8px 4px 0px;display:block;color:".$dropcap_color.";font-size:".$dropcap_fontsize.";font-family:".$dropcap_fontfamily."; \">***code***</div>", "#{btd_dropcap}(.*?){/btd_dropcap}#s"),
"btd_button1" => array("
<div style=\"float:left;\"><div style=\"background:url(".$btdpath."/button1/left.png) top left no-repeat;height:24px;font-size:11px;line-height:24px;padding-left:10px;overflow:hidden;float:left;\">
<div style=\"background:url(".$btdpath."/button1/right.png) top right no-repeat;font-size:11px;height:24px;line-height:24px;padding-right:10px;float:left; \">***code***</div></div></div>","#{btd_button1}(.*?){/btd_button1}#s"),
"btd_button2" => array("
<div style=\"float:left;\"><div style=\"background: url(".$btdpath."/button2/left.png) top left no-repeat;height:24px;font-size:11px;line-height:24px;padding-left:10px;overflow:hidden;float:left;\">
<div style=\"background:url(".$btdpath."/button2/right.png) top right no-repeat;font-size:11px;height:24px;line-height:24px;padding-right:10px;float:left;\">***code***</div></div></div>","#{btd_button2}(.*?){/btd_button2}#s") ,
"btd_button3" => array("
<div style=\"float:left;\"><div style=\"background:url(".$btdpath."/button3/left.png) top left no-repeat;height:24px;font-size:11px;line-height:24px;padding-left:10px;overflow:hidden;float:left;\">
<div style=\"background:url(".$btdpath."/button3/right.png) top right no-repeat;font-size:11px;height:24px;line-height:24px;padding-right:10px;float:left; \">***code***</div></div></div>","#{btd_button3}(.*?){/btd_button3}#s"),
// несортированный список
"btd_li_mark" => array("
<ul><li style=\"list-style-image:url(".$btdpath."/slyle/".$bgimgli_mark.") center no-repeat;background-color:none; \">***code***</li></ul>","#{btd_li_mark}(.*?){/btd_li_mark}#s"),
"btd_li_disc" => array("
<ul style=\"list-style:disc ".$color_li_disc." \"><li><span style=\"color:".$color_li_disc_span."\">***code***</span></li></ul>","#{btd_li_disc}(.*?){/btd_li_disc}#s"),
"btd_li_circle" => array("
<ul style=\"list-style:circle ".$color_li_circle." \"><li><span style=\"color:".$color_li_circle_span."\">***code***</span></li></ul>","#{btd_li_circle}(.*?){/btd_li_circle}#s"),
"btd_li_square" => array("
<ul style=\"list-style:square ".$color_li_square." \"><li><span style=\"color:".$color_li_circle_span."\">***code***</span></li></ul>","#{btd_li_square}(.*?){/btd_li_square}#s"),
// сортированный список
"btd_li_decimal" => array("
<ol style=\"list-style:lower-roman ".$color_li_decimal." \"><li><span style=\"color:".$color_li_decimal_span."\">***code***</span></li></ol>","#{btd_li_decimal}(.*?){/btd_li_decimal}#s"),
"btd_li_l_roman" => array("
<ol style=\"list-style:lower-roman ".$color_li_l_roman." \"><li><span style=\"color:".$color_li_l_roman_span."\">***code***</span></li></ol>","#{btd_li_l_roman}(.*?){/btd_li_l_roman}#s"),
"btd_li_u_roman" => array("
<ol style=\"list-style:upper-roman ".$color_li_u_roman." \"><li><span style=\"color:".$color_li_u_roman_span."\">***code***</span></li></ol>","#{btd_li_u_roman}(.*?){/btd_li_u_roman}#s"),
"btd_li_l_alpha" => array("
<ol style=\"list-style:lower-alpha ".$color_li_l_alpha." \"><li><span style=\"color:".$color_li_l_alpha_span."\">***code***</span></li></ol>","#{btd_li_l_alpha}(.*?){/btd_li_l_alpha}#s"),
"btd_li_u_alpha" => array("
<ol style=\"list-style:upper-alpha ".$color_li_u_alpha." \"><li><span style=\"color:".$color_li_u_alpha_span."\">***code***</span></li></ol>","#{btd_li_u_alpha}(.*?){/btd_li_u_alpha}#s"),
// угол 1
"btd_rounded1" => array("
<div>
<div style=\"width:100%;margin:0px auto;background: url(".$btdpath."/rounded1/left.gif) repeat-y left top ".$roundtxtbg1."; \"><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded1/topleft.png) no-repeat left top;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded1/topright.png) no-repeat right top;\">&nbsp;</span></div><div style=\"position:relative;background:url(".$btdpath."/rounded1/right.gif) repeat-y right top;padding:1px 20px 1px 25px;margin:-1px 0 0 0;\"><div style=\"color:".$roundtxtcolor1.";\">***code***</div></div><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded1/bottomleft.png) no-repeat left bottom;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded1/bottomright.png) no-repeat right top;\">&nbsp;</span></div></div></div>", "#{btd_rounded1}(.*?){/btd_rounded1}#s"),
"btd_rounded_left1" => array("
<div style=\"width:".$round_left_width."; float:left; margin:5px; \"><div style=\"width:100%;margin:0px auto;background: url(".$btdpath."/rounded1/left.gif) repeat-y left top ".$roundtxtbg1."; \"><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded1/topleft.png) no-repeat left top;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded1/topright.png) no-repeat right top;\">&nbsp;</span></div><div style=\"position:relative;background:url(".$btdpath."/rounded1/right.gif) repeat-y right top;padding:1px 20px 1px 25px;margin:-1px 0 0 0;\"><div style=\"color:".$roundtxtcolor1.";\">***code***</div></div><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded1/bottomleft.png) no-repeat left bottom;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded1/bottomright.png) no-repeat right top;\">&nbsp;</span></div></div></div>", "#{btd_rounded_left1}(.*?){/btd_rounded_left1}#s"),
"btd_rounded_right1" => array("
<div style=\"width:".$round_right_width."; float:right; margin:5px; \">
<div style=\"width:100%;margin:0px auto;background: url(".$btdpath."/rounded1/left.gif) repeat-y left top ".$roundtxtbg1."; \">
<div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded1/topleft.png) no-repeat left top;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded1/topright.png) no-repeat right top;\">&nbsp;</span></div><div style=\"position:relative;background:url(".$btdpath."/rounded1/right.gif) repeat-y right top;padding:1px 20px 1px 25px;margin:-1px 0 0 0;\"><div style=\"color:".$roundtxtcolor1.";\">***code***</div></div><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded1/bottomleft.png) no-repeat left bottom;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded1/bottomright.png) no-repeat right top;\">&nbsp;</span></div></div></div>", "#{btd_rounded_right1}(.*?){/btd_rounded_right1}#s"),
// угол 2
"btd_rounded2" => array("
<div><div style=\"width:100%;margin:0px auto;background: url(".$btdpath."/rounded2/left.gif) repeat-y left top ".$roundtxtbg2."; \"><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded2/topleft.png) no-repeat left top;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded2/topright.png) no-repeat right top;\">&nbsp;</span></div><div style=\"position:relative;background:url(".$btdpath."/rounded2/right.gif) repeat-y right top;padding:1px 20px 1px 25px;margin:-1px 0 0 0;\"><div style=\"color:".$roundtxtcolor2.";\">***code***</div></div><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded2/bottomleft.png) no-repeat left bottom;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded2/bottomright.png) no-repeat right top;\">&nbsp;</span></div></div></div>", "#{btd_rounded2}(.*?){/btd_rounded2}#s"),
"btd_rounded_left2" => array("
<div style=\"width:".$round_left_width."; float:left; margin:5px; \">
<div style=\"width:100%;margin:0px auto;background: url(".$btdpath."/rounded2/left.gif) repeat-y left top ".$roundtxtbg2."; \">
<div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded2/topleft.png) no-repeat left top;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded2/topright.png) no-repeat right top;\">&nbsp;</span></div><div style=\"position:relative;background:url(".$btdpath."/rounded2/right.gif) repeat-y right top;padding:1px 20px 1px 25px;margin:-1px 0 0 0;\"><div style=\"color:".$roundtxtcolor2.";\">***code***</div></div><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded2/bottomleft.png) no-repeat left bottom;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded2/bottomright.png) no-repeat right top;\">&nbsp;</span></div></div></div>", "#{btd_rounded_left2}(.*?){/btd_rounded_left2}#s"),
"btd_rounded_right2" => array("
<div style=\"width:".$round_right_width."; float:right; margin:5px; \"><div style=\"width:100%;margin:0px auto;background: url(".$btdpath."/rounded2/left.gif) repeat-y left top ".$roundtxtbg2."; \"><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded2/topleft.png) no-repeat left top;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded2/topright.png) no-repeat right top;\">&nbsp;</span></div><div style=\"position:relative;background:url(".$btdpath."/rounded2/right.gif) repeat-y right top;padding:1px 20px 1px 25px;margin:-1px 0 0 0;\"><div style=\"color:".$roundtxtcolor2.";\">***code***</div></div><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded2/bottomleft.png) no-repeat left bottom;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded2/bottomright.png) no-repeat right top;\">&nbsp;</span></div></div></div>", "#{btd_rounded_right2}(.*?){/btd_rounded_right2}#s"),
// угол 3
"btd_rounded3" => array("
<div><div style=\"width:100%;margin:0px auto;background: url(".$btdpath."/rounded3/left.gif) repeat-y left top ".$roundtxtbg3."; \"><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded3/topleft.png) no-repeat left top;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded3/topright.png) no-repeat right top;\">&nbsp;</span></div><div style=\"position:relative;background:url(".$btdpath."/rounded3/right.gif) repeat-y right top;padding:1px 20px 1px 25px;margin:-1px 0 0 0;\"><div style=\"color:".$roundtxtcolor3.";\">***code***</div></div><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded3/bottomleft.png) no-repeat left bottom;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded3/bottomright.png) no-repeat right top;\">&nbsp;</span></div></div></div>", "#{btd_rounded3}(.*?){/btd_rounded3}#s"),
"btd_rounded_left3" => array("
<div style=\"width:".$round_left_width."; float:left; margin:5px; \"><div style=\"width:100%;margin:0px auto;background: url(".$btdpath."/rounded3/left.gif) repeat-y left top ".$roundtxtbg3."; \"><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded3/topleft.png) no-repeat left top;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded3/topright.png) no-repeat right top;\">&nbsp;</span></div><div style=\"position:relative;background:url(".$btdpath."/rounded3/right.gif) repeat-y right top;padding:1px 20px 1px 25px;margin:-1px 0 0 0;\"><div style=\"color:".$roundtxtcolor3.";\">***code***</div></div><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded3/bottomleft.png) no-repeat left bottom;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded3/bottomright.png) no-repeat right top;\">&nbsp;</span></div></div></div>", "#{btd_rounded_left3}(.*?){/btd_rounded_left3}#s"),
"btd_rounded_right3" => array("
<div style=\"width:".$round_right_width."; float:right; margin:5px; \">
<div style=\"width:100%;margin:0px auto;background: url(".$btdpath."/rounded3/left.gif) repeat-y left top ".$roundtxtbg3."; \">
<div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded3/topleft.png) no-repeat left top;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded3/topright.png) no-repeat right top;\">&nbsp;</span></div><div style=\"position:relative;background:url(".$btdpath."/rounded3/right.gif) repeat-y right top;padding:1px 20px 1px 25px;margin:-1px 0 0 0;\"><div style=\"color:".$roundtxtcolor3.";\">***code***</div></div><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded3/bottomleft.png) no-repeat left bottom;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded3/bottomright.png) no-repeat right top;\">&nbsp;</span></div></div></div>", "#{btd_rounded_right3}(.*?){/btd_rounded_right3}#s"),
// угол 4
"btd_rounded4" => array("
<div><div style=\"width:100%;margin:0px auto;background: url(".$btdpath."/rounded4/left.gif) repeat-y left top ".$roundtxtbg4."; \"><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded4/topleft.png) no-repeat left top;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded4/topright.png) no-repeat right top;\">&nbsp;</span></div><div style=\"position:relative;background:url(".$btdpath."/rounded4/right.gif) repeat-y right top;padding:1px 20px 1px 25px;margin:-1px 0 0 0;\"><div style=\"color:".$roundtxtcolor4.";\">***code***</div></div><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded4/bottomleft.png) no-repeat left bottom;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded4/bottomright.png) no-repeat right top;\">&nbsp;</span></div></div></div>", "#{btd_rounded4}(.*?){/btd_rounded4}#s"),
"btd_rounded_left4" => array("
<div style=\"width:".$round_left_width."; float:left; margin:5px; \">
<div style=\"width:100%;margin:0px auto;background: url(".$btdpath."/rounded4/left.gif) repeat-y left top ".$roundtxtbg4."; \"><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded4/topleft.png) no-repeat left top;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded4/topright.png) no-repeat right top;\">&nbsp;</span></div><div style=\"position:relative;background:url(".$btdpath."/rounded4/right.gif) repeat-y right top;padding:1px 20px 1px 25px;margin:-1px 0 0 0;\"><div style=\"color:".$roundtxtcolor4.";\">***code***</div></div><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded4/bottomleft.png) no-repeat left bottom;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded4/bottomright.png) no-repeat right top;\">&nbsp;</span></div></div></div>", "#{btd_rounded_left4}(.*?){/btd_rounded_left4}#s"),
"btd_rounded_right4" => array("
<div style=\"width:".$round_right_width.";float:right;margin:5px; \"><div style=\"width:100%;margin:0px auto;background:url(".$btdpath."/rounded4/left.gif) repeat-y left top ".$roundtxtbg4."; \"><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded4/topleft.png) no-repeat left top;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded4/topright.png) no-repeat right top;\">&nbsp;</span></div><div style=\"position:relative;background:url(".$btdpath."/rounded4/right.gif) repeat-y right top;padding:1px 20px 1px 25px;margin:-1px 0 0 0;\"><div style=\"color:".$roundtxtcolor4.";\">***code***</div></div><div style=\"width:100%;height:20px;background:url(".$btdpath."/rounded4/bottomleft.png) no-repeat left bottom;\"><span style=\"display:block;position:relative;height:20px;background:url(".$btdpath."/rounded4/bottomright.png) no-repeat right top;\">&nbsp;</span></div></div></div>", "#{btd_rounded_right4}(.*?){/btd_rounded_right4}#s"), );
// (c)
$startcode="";
$endcode="";
if (!$published) {
foreach ($regex as $key=> $value) {
$row->text=preg_replace($regex[$key][1], '', $row->text);
} return; }
foreach ($regex as $key=> $value) {
if (preg_match_all($regex[$key][1], $row->text, $matches, PREG_PATTERN_ORDER) > 0) {
foreach ($matches[1] as $match) {
//$match=preg_replace("/{.+?}/", "", $match);
$code=str_replace("***code***", $match, $regex[$key][0]);
$a=preg_quote($match);
$a=str_replace("'", "\'", $a);
$row->text=preg_replace("'{".preg_quote($key)."}".$a."{/".preg_quote($key)."}'s", $startcode.$code.$endcode , $row->text); }
} } } ?>